import Api from '@/services/ant-design-pro/index';
import { Button } from 'antd';
import { FC } from 'react';

const handleMess1 = async () => {
  const res = await Api.Exercise01.getMessage1();
  console.log(res, 'res');
};

const Fastify01: FC = () => {
  return (
    <div>
      <h2>练习使用Fastify</h2>
      <Button onClick={handleMess1}>点击获取message1</Button>
    </div>
  );
};

export default Fastify01;
